# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=dfu-util
pkgver=0.11
pkgrel=1
pkgdesc="Host side implementation of the DFU 1.0 and DFU 1.1 specifications"
url="https://dfu-util.sourceforge.net/"
arch="all"
license="GPL-2.0-only"
makedepends="libusb-dev"
subpackages="$pkgname-doc"
source="https://dfu-util.sourceforge.net/releases/dfu-util-$pkgver.tar.gz"

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
fc5304a483ac10e35bf1b9304becdeb407b2e44d8ac51474d2fa17877e6cf71b0126f7e12ebb331d75e7adeb9c173ff5cf083a06ded5847dbe477534cf26a553  dfu-util-0.11.tar.gz
"
